package com.example.demo.taskSchedule;

import com.example.demo.entity.ExecuteInformationEntity;
import com.example.demo.executor.Executor;

public class DataProcessTask implements Runnable{

    private ExecuteInformationEntity executeInformation;

    private Executor mainTableExecutor;

    public DataProcessTask(ExecuteInformationEntity executeInformation, Executor mainTableExecutor) {
        this.executeInformation = executeInformation;
        this.mainTableExecutor = mainTableExecutor;
    }

    @Override
    public void run() {
        mainTableExecutor.execute(executeInformation);
    }
}
